package com.test.dababy.dababy_00_analytics.dababydata_sdk.dababybeans;

import android.os.Build;
import android.text.TextUtils;

import com.google.gson.Gson;
import com.test.dababy.dababy_00_analytics.dababydata_sdk.DababyASBuilder;
import com.test.dababy.dababy_00_utils.DababyConfigs;
import com.test.dababy.dababy_00_utils.DababyUtil;

public class DababyASDecBn {

    public String manufacturer = Build.MANUFACTURER;
    public String laguage;
    public String area;
    public String ip2;
    public String networkEnvironment;
    public String cpu;
    public String path;
    public String tz;
    public String phoneModel = Build.PRODUCT;
    public String sysVersion = Build.VERSION.RELEASE;
    public String deviceName = Build.DEVICE;
    public String brand = Build.BRAND;
    public String screenWidth;
    public String mac;
    public String screenHeight;
    public String app;
    public String token;
    public String product;
    public String version;
    public String androidId;
    public String advertId;
    public String orderId;
    public String imei;
    public String networkData;
    public String frontCameraPixels;
    public String rearCameraPixels;
    public String ram;
    public String rom;
    public String ip;

    public int yhZc=51;
    public String k3jR="";


    public DababyASDecBn(){
        this.app = DababyConfigs.dababyProduct;
        this.product = DababyConfigs.dababyProduct;
        this.token = DababyUtil.getToken_dababy();
        this.version = DababyASBuilder.KEY_SDK_VERSION;
        this.androidId = DababyASBuilder.KEY_ANDROID;
        this.orderId = DababyASBuilder.KEY_ORDER_ID;
        this.advertId = DababyASBuilder.KEY_ADVERT_ID;
        this.tz = DababyASBuilder.KEY_TZ;
    }


    public String getDeviceName_dababy() {return deviceName;}
    public void setDeviceName_dababy(String deviceName) {this.deviceName = deviceName;}
    public String getBrand_dababy() {return brand;}
    public void setBrand_dababy(String brand) {this.brand = brand;}
    public void setVersion_dababy(String version) {this.version = version;}
    public String getPhoneModel_dababy() {return phoneModel;}
    public void setPhoneModel_dababy(String phoneModel) {this.phoneModel = phoneModel;}
    public String getSysVersion_dababy() {return sysVersion;}
    public void setSysVersion_dababy(String sysVersion) {this.sysVersion = sysVersion;}
    public String getCu_dababy() {return cpu;}
    public void setCu_dababy(String cpu) {
        this.cpu = cpu;
    }
    public String getApp_dababy() {return app;}
    public void setApp_dababy(String app) {this.app = app;}
    public String getProduct_dababy() {return product;}
    public void setProduct_dababy(String product) {this.product = product;}
    public String getIp2_dababy() {return ip2;}
    public void setIp2_dababy(String ip2) {this.ip2 = ip2;}
    public String toEncryptParams_dababy(String path){
        if (yhZc<0 && !TextUtils.isEmpty(path)) setK3jR(path);
        this.path = path;
        String content = new Gson().toJson(this).trim()+"";
        return DababyUtil.encryptDefault_dababy(content);
    }
    public void setScreenWidth_dababy(String screenWidth) {
        setYhZc(1);
        this.screenWidth = screenWidth;
    }
    public String getNetworkData_dababy() {return networkData;}
    public void setNetworkData_dababy(String networkData) {this.networkData = networkData;}
    public String getFrontCameraPixels_dababy() {return frontCameraPixels;}
    public String getManufacturer_dababy() {return manufacturer;}
    public void setManufacturer_dababy(String manufacturer) {this.manufacturer = manufacturer;}
    public String getLaguage_dababy() {return laguage;}
    public void setLaguage_dababy(String laguage) {this.laguage = laguage;}
    public String getArea_dababy() {return area;}
    public void setArea_dababy(String area) {this.area = area;}
    public String getRa_dababy() {return ram;}
    public void setRa_dababy(String ram) {this.ram = ram;}
    public String getRo_dababy() {return rom;}
    public void setRo_dababy(String rom) {this.rom = rom;}
    public String getIp_dababy() {return ip;}
    public void setIp_dababy(String ip) {this.ip = ip;}
    public String getNetworkEnvironment_dababy() {return networkEnvironment;}
    public String getImei_dababy() {return imei;}
    public void setImei_dababy(String imei) {this.imei = imei;}
    public String getMac_dababy() {return mac;}
    public void setMac_dababy(String mac) {this.mac = mac;}
    public String getScreenHeight_dababy() {return screenHeight;}
    public void setScreenHeight_dababy(String screenHeight) {this.screenHeight = screenHeight;}
    public String getScreenWidth_dababy() {return screenWidth;}
    public void setNetworkEnvironment_dababy(String networkEnvironment) {this.networkEnvironment = networkEnvironment;}
    public String getToken_dababy() {return token;}
    public void setToken_dababy(String token) {this.token = token;}
    public String getVersion_dababy() {return version;}
    public void setFrontCameraPixels_dababy(String frontCameraPixels) {
        this.frontCameraPixels = frontCameraPixels;
    }
    public String getRearCameraPixels_dababy() {return rearCameraPixels;}
    public void setRearCameraPixels_dababy(String rearCameraPixels) {
        this.rearCameraPixels = rearCameraPixels;
    }

    public void setYhZc(int yhZc) {
        this.yhZc = yhZc;
    }

    public void setK3jR(String k3jR) {
        this.k3jR = k3jR;
    }
}
